package com.echo.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

import java.util.Calendar;
import java.util.List;

/**
 * Created by EchoGe on 2016/6/3.
 */
@Table(name="day_data")
public class DayData extends Model{
    @Column(name="_id",unique = true, onUniqueConflict = Column.ConflictAction.REPLACE)
    private long id;
    @Column(name="user_id")
    private long userId;
    @Column(name="steps")
    private int steps;
    @Column(name="rank")
    private int rank;
    @Column(name="distance")
    private int distance;
    @Column(name="date",notNull = true)
    private String date;
    @Column(name="time")
    private int time;
    @Column(name="calories")
    private int calories;

    public DayData(){
        super();
    }

    public long getid() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getSteps() {
        return steps;
    }

    public void setSteps(int steps) {
        this.steps = steps;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getCalories() {
        return calories;
    }

    public void setCalories(int calories) {
        this.calories = calories;
    }
}
